<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Web Notes Framework &mdash; Documentation</title>
    <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '',
        COLLAPSE_MODINDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Documentation" href="index.html" />
    <link rel="up" title="1. Introduction" href="intro.html" />
    <link rel="next" title="Concepts" href="concepts.html" />
    <link rel="prev" title="1. Introduction" href="intro.html" /> 
  </head>
  <body>
    <div style="background-color: #FFF; text-align: left; padding: 8px 0px"><img src="_static/banner300910.gif"></div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             accesskey="M">modules</a> |</li>
        <li class="right" >
          <a href="concepts.html" title="Concepts"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="intro.html" title="1. Introduction"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">Documentation</a> &raquo;</li>
          <li><a href="intro.html" accesskey="U">1. Introduction</a> &raquo;</li> 
      </ul>
    </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
            <h3><a href="index.html">Table Of Contents</a></h3>
            <ul>
<li><a class="reference external" href="">Web Notes Framework</a><ul>
<li><a class="reference external" href="#why-web-notes-framework">Why Web Notes Framework?</a></li>
<li><a class="reference external" href="#see-it-in-action">See it in action</a></li>
<li><a class="reference external" href="#setting-up-and-installing">Setting Up and Installing</a></li>
</ul>
</li>
</ul>

            <h4>Previous topic</h4>
            <p class="topless"><a href="intro.html"
                                  title="previous chapter">1. Introduction</a></p>
            <h4>Next topic</h4>
            <p class="topless"><a href="concepts.html"
                                  title="next chapter">Concepts</a></p>
            <h3>This Page</h3>
            <ul class="this-page-menu">
              <li><a href="_sources/webnotes_intro.txt"
                     rel="nofollow">Show Source</a></li>
            </ul>
          <div id="searchbox" style="display: none">
            <h3>Quick search</h3>
              <form class="search" action="search.html" method="get">
                <input type="text" name="q" size="18" />
                <input type="submit" value="Go" />
                <input type="hidden" name="check_keywords" value="yes" />
                <input type="hidden" name="area" value="default" />
              </form>
              <p class="searchtip" style="font-size: 90%">
              Enter search terms or a module, class or function name.
              </p>
          </div>
          <script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="web-notes-framework">
<h1>Web Notes Framework<a class="headerlink" href="#web-notes-framework" title="Permalink to this headline">¶</a></h1>
<div class="section" id="why-web-notes-framework">
<h2>Why Web Notes Framework?<a class="headerlink" href="#why-web-notes-framework" title="Permalink to this headline">¶</a></h2>
<p>This question was not relevant in 2005 when the Framework started being developed, now however,
there are many popular frameworks beginning with Ruby on Rails, Django, GWT etc. Does it make sense to look
at yet another framework? We think yes, here are a few reasons:</p>
<ul class="simple">
<li>It is a pure meta-data framework, not based on templates that most frameworks support, taking automation
the next level</li>
<li>It has back-end and front-end integrated with built-in AJAX</li>
<li>It has more features out-of-the box than any other framework</li>
<li>It is extremely light weight and runs on Apache-CGI</li>
</ul>
</div>
<div class="section" id="see-it-in-action">
<h2>See it in action<a class="headerlink" href="#see-it-in-action" title="Permalink to this headline">¶</a></h2>
<p>Go to <a class="reference external" href="http://wnframework.org">http://wnframework.org</a> for more info</p>
</div>
<div class="section" id="setting-up-and-installing">
<h2>Setting Up and Installing<a class="headerlink" href="#setting-up-and-installing" title="Permalink to this headline">¶</a></h2>
<blockquote>
<ol class="arabic">
<li><p class="first">Pre-requisites</p>
<ol class="arabic simple">
<li>Python</li>
<li>MySQL</li>
<li>MySQL-Python</li>
</ol>
</li>
<li><p class="first">Setting Up Apache</p>
<p>Changes to httpd.conf to enable execution of CGI files from anywhere</p>
<ol class="arabic">
<li><p class="first">Add ExecCGI to Options directive</p>
</li>
<li><p class="first">Uncomment AddHandler for ExecCGI</p>
</li>
<li><p class="first">Add (to block python files from being directly viewed):</p>
<div class="highlight-python"><pre>RewriteEngine on
RewriteRule \.py - [F]</pre>
</div>
</li>
</ol>
</li>
<li><p class="first">Setting Up Framework</p>
<ol class="arabic">
<li><p class="first">Download the framework to your &#8220;www&#8221; folder:</p>
<div class="highlight-python"><pre>svn checkout http://wnframework.googlecode.com/svn/trunk/v170/</pre>
</div>
</li>
<li><p class="first">Set mysql root login details in: cgi-bin/defs.py</p>
</li>
<li><p class="first">Go to the cgi-bin python create the base account:</p>
<div class="highlight-python"><div class="highlight"><pre><span class="kn">import</span> <span class="nn">server</span>
<span class="n">server</span><span class="o">.</span><span class="n">create_account</span><span class="p">(</span><span class="s">&#39;accounts&#39;</span><span class="p">)</span>
</pre></div>
</div>
</li>
</ol>
</li>
<li><p class="first">Start the apache webserver and go to your browser:</p>
<blockquote>
<p>localhost/login.html</p>
<p>account: accounts
login: Administrator
password: admin</p>
</blockquote>
</li>
</ol>
<p><strong>You are set!</strong></p>
</blockquote>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="modindex.html" title="Global Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="concepts.html" title="Concepts"
             >next</a> |</li>
        <li class="right" >
          <a href="intro.html" title="1. Introduction"
             >previous</a> |</li>
        <li><a href="index.html">Documentation</a> &raquo;</li>
          <li><a href="intro.html" >1. Introduction</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
      &copy; Copyright 2010, Rushabh Mehta.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 0.6.3.
    </div>
  </body>
</html>